<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <shenhan v-for="item in items" v-bind:item1="item"></shenhan>

</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
    Vue.component("shenhan", {
        props: ['item1'],
        template: '<li>{{item1}}</li>'
    })
    var vm = new Vue({
        el: "#app",
        data: {
            items: ["java", "php", "javaScript"]
        },
        methods: {}
    });
</script>
</body>
</html>
